import api from "../api.js" //先导入封装好的

//动态列表
const trendsList = async (param) => { 
	console.log("进入方法---",param);
	let data = await api.api({
		url: '/jeecg-boot/api/adopt/trends/list',
		data: param
	})
	return data
}
//动态详情
const trendsTitle = async (param) => { 
	console.log("进入方法---", param);
	let data = await api.api({
		url: '/jeecg-boot/api/adopt/trends/' + param,
		// data: param
	})
	return data
}
//查询认养介绍列表
const introduceList = async (param) => { 
	console.log("进入方法---", param);
	let data = await api.api({
		url: '/jeecg-boot/api/adopt/introduce/list',
		data: param
	})
	return data
}
//根据title查询认养介绍
const introduceTitle = async (param) => { 
	console.log("进入方法---", param);
	let data = await api.api({
		url: '/jeecg-boot/api/adopt/introduce/' + param,
		// url: '/jeecg-boot/api/adopt/introduce',
		// data: param
	})
	return data
}
export { //这是另一种导出方式
	trendsList,
	trendsTitle,
	introduceList,
	introduceTitle
}